# 关于clear
from selenium import webdriver
import time
driver = webdriver.Chrome()
driver.get("https://www.baidu.com/")
driver.find_element_by_css_selector("#kw").send_keys("Python语法")
driver.find_element_by_css_selector("#su").click()
time.sleep(3)
driver.find_element_by_css_selector("#kw").clear()
time.sleep(3)
driver.find_element_by_id("kw").send_keys("java语法")
driver.find_element_by_id("su").click()
time.sleep(3)
driver.quit()
